package day04.ZuoYeDemo;//1. ScoreLevel成绩等级判断：
import java.util.Scanner;
public class ScoreLevelDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("欢迎使用大铁棍成绩查询系统");
        System.out.println("请输入您的成绩：");
        double ChengJi = scan.nextDouble();
        System.out.println("您的成绩为：" + ChengJi);
        if (ChengJi<0 || ChengJi>100){
            System.out.println("成绩超出了合格范围");
            System.out.println("作弊有情可原");
            System.out.println("但是开挂就很不让人理解了哦.");
            System.out.println("小同学你的成绩无效！");
        }else if (ChengJi>=90){
            System.out.println("成绩等级：A");
            System.out.println("表现不错,还要加油哦.");
        }else if (ChengJi>=80){
            System.out.println("成绩等级：B");
            System.out.println("还需要继续努力.");
        }else if (ChengJi>=60){
            System.out.println("成绩等级：C");
            System.out.println("有点不太理想哦.");
        }else {
            System.out.println("成绩等级：D");
            System.out.println("明天办理退学吧,继续学没啥用了.");
        }
    }
}
